<div class="media">
<?
	if ($list) { ?>
		<ul>
	<?
		foreach($media as $mit) { ?>
			<li><? $mit->display(); ?></li>
			<?
		} ?>
		</ul>
	<?
	} else { ?>
		No files.
	<? }
?>
</div>